// stores/userInfo.js
import { defineStore } from 'pinia';
import {ref,reactive, getCurrentInstance,nextTick} from 'vue'
export const useUserInfoStore = defineStore('userInfo', () => {
	const userInfo = ref({});
	
	// 设置用户信息
	const setUserInfo = (data) => {
		userInfo.value = data;
	}
	
	// 获取用户信息
	const getUserInfo = () => {
		return userInfo.value;
	}

	return { userInfo, setUserInfo , getUserInfo};
});